//
//  Int+Extensions.swift
//  DevelopmentPods
//
//  Created by 尹琼 on 2022/10/22.
//

import UIKit

public extension Int {
    
    var leadingZero:String{
        return String(format: "%02d", self)
    }
    
    var normalTitle: String {
        if self == 0 {
            return "--"
        }
        return "\(self)"
    }
    
    func normalTitle(format: String) ->String {
        if self == 0 {
            return "--"
        }
        return String(format: format, self)
    }
    
    
}
